<?php
$T->loadTpl("./html/".$template."/".$qname.".html");
$T->SetTpl('cssjs','html/cssjs.inc'); 
$T->SetTpl('jsmodel','html/jsmodel.inc');     
  
$id=isset($_GET["id"])?$_GET["id"]:"0";
$T->readDB("select A.*,C.name as typename from sys_schedule A left join sys_schedule_type C on C.id=A.type where A.id='".$id."'");

$T->Set("template",$template);         
$T->clearNaN();       
$T->clearNoN();
$T->display(); 